package com.joker.demo.admin.config;


import io.swagger.v3.oas.models.ExternalDocumentation;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Swagger配置
 *
 * @author feixiang.li
 * @since 2025-07-05
 */
@Configuration
public class Swagger3Config {

    @Bean
    public OpenAPI mallTinyOpenAPI() {

        return new OpenAPI().info(new Info()
                        .title("本地测试")
                        .description("接口演示")
                        .version("v1.0.0")
                        .license(new License().name("Apache 2.0")
                                .url("https://github.com/")))
                .externalDocs(new ExternalDocumentation()
                        .description("SpringBoot 后台接口")
                        .url("https://www.baidu.com"));
    }


}